When we see a httplib.BadStatusLine, sleep 5 seconds and then retry. This
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 13 Dec 2005 18:07:51 +0000 (18:07 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 13 Dec 2005 18:07:51 +0000 (18:07 +0000)
commit54fd0f2fb951dc499e51ff52c36d2c20cba4c7c5
tree7462d203200302d3623949201231a67a2389fc67
parent464379d28540ae1a2eb72602fb06b5e9f04f2003
When we see a httplib.BadStatusLine, sleep 5 seconds and then retry.  This
happens when Xend crashes, so retrying once allows it to restart and recover.
If we see Xend crash twice, we give up, but throw a more polite exception than
the BadStatusLine splat that we got previously.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendProtocol.py